package com.xz.springcloud.service;

import com.xz.springcloud.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @Author：xz
 * @Date：2023/3/20
 */
@FeignClient(value = "seata-account-service")
@RequestMapping("/account")
public interface AccountService {

    @PostMapping(value = "/decrease")
    CommonResult decrease(@RequestParam("userId") Long productId, @RequestParam("money") BigDecimal money);

}
